package com.vmove.childtrain.db.entity;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Collection;

/**
 * light表
 */
@DatabaseTable(tableName = "tb_light")
public class Light {

    //表中各个字段的名称
    public static final String COLUMNNAME_ID = "id";
    /**逻辑ID*/
    public static final String COLUMNNAME_REAL_ID = "lightId";

    @DatabaseField(columnName = COLUMNNAME_ID,generatedId = true)
    private int id;

    @DatabaseField(columnName = COLUMNNAME_REAL_ID)
    private int lightId;

    @DatabaseField
    private String sn;

    @DatabaseField
    private String createTime;

    public Light() {
    }

    public Light(int parseInt) {
        this.lightId = parseInt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLightId() {
        return lightId;
    }

    public void setLightId(int lightId) {
        this.lightId = lightId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
